<?php
namespace Admin\Controller;


use Think\Controller;

class DashController extends  Controller{


    public function index(){

        $shopModel = D('Shop');
        $shopModel1 = D('Shop');

        var_dump($shopModel === $shopModel1);

        var_dump($shopModel);


    }

    public function select(){

//        $shopModel = M('\Admin\Model\ShopModel');
        $shopModel = new \Admin\Model\ShopModel();

        var_dump($shopModel->select());
    }


    public function t1(){
//        $m = M('xcx_hotel.user','ps_', 'XCX_MANAGE_DB');
        $m = M('shop','ps_', 'XCX_MANAGE_DB');

//        var_dump($m->query('select * from ps_shop_db_info'));
//        dd($m->select());

        dp($m->select());

    }




}